import getpass
number = int(getpass.getpass("请输入数字:"))
count = 0
while True:
    if count < 3:
        guess = int(input("请输入你所猜测的数字:"))
        if number == guess:
            print("你猜对了！")
        elif number > guess:
            print("你猜的数太小了")
        else:
            print("你猜的数太大了")
    else:
        print("还是没有猜对")
        break
    count = count + 1
